package com.bootdo.system.controller;

import com.bootdo.system.domain.ChongbitableDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import com.bootdo.system.service.ChongbitableService;


@Controller
@RequestMapping("/chongbitable")
public class ChongbitableController {
    @Autowired
    private ChongbitableService chongbitableService;


    @GetMapping("/detail")
    public String get(Model model) {

        ChongbitableDO chongbitableDO = chongbitableService.get(1);

        model.addAttribute("chongbitableDO", chongbitableDO);

        return "chongbidetail";
    }


}
